package com.modules.dao.generator;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.common.mybatis.MyBatisDao;
import com.modules.entity.generator.CodeGeneratorEntity;
import com.modules.entity.generator.GeneratorFieldEntity;
import com.modules.entity.generator.GeneratorTableEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 代码生成器配置接口
 *
 * @author yyq
 */

@MyBatisDao
public interface CodeGeneratorDao extends BaseMapper<CodeGeneratorEntity> {

    /** 查询所有表*/
    IPage<GeneratorTableEntity> selectTablePage(Page<GeneratorTableEntity> page);

    /** 查询某个表字段*/
    List<GeneratorFieldEntity> selectTableFieldPage(@Param(value="name")String name);


}
